<link href="images/admin/skin.css" rel="stylesheet" type="text/css" />
<link href="css/admin_css/table.css" rel="stylesheet" type="text/css" />
<link href="assets/f01797d7/pager.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
-->
</style>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="images/admin/mail_leftbg.gif"><img src="images/admin/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="images/admin/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">首页图片</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="images/admin/mail_rightbg.gif"><img src="images/admin/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="images/admin/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
    
<div id="PhpGird-table">
<table cellspacing="0" id="table_net">
		  <caption>
		  </caption>
		  <tbody>
		  <tr>
		  <th scope="col" class="Dual 1.8">ID</th>
		  <th scope="col" class="Dual 1.8">标题</th>
		  <th scope="col" class="Dual 1.8">链接</th>
		  <th scope="col" class="Dual 1.8">图片</th>
		  <th scope="col" class="Dual 1.8">序号</th>
		  <th scope="col" class="Dual 1.8">操作</th>
		  </tr>
		  <?php if($datas){?>
		  <?php foreach ($datas as $key=>$vals){?>
		  <tr>
		  	<th class="spec"><?php echo $vals['ID'];?></th>
		  	<th class="spec"><?php echo $vals['ENTitle'];?></th>
		  	<th class="spec"><?php echo $vals['Link'];?></th>
		  	<th class="spec"><img src="<?php echo $vals['PicPath'];?>" width="90"/></th>
		  	<th class="spec"><?php echo $vals['Sorts']?></th>
		  	<th class="spec">
		  		<a  href="<?php echo $this->createUrl('admin/updatepic' , array( 'ID' => $vals['ID'] ) );?>">
		  			<img border="0" src="/images/admin/edit.gif" alt="编辑" title="编辑"/>
		  		</a>
		  		<a onclick="if(confirm('您确定要删除？')){return true;}else{return false;}" href="<?php echo $this->createUrl('admin/delpic' , array( 'ID' => $vals['ID'] ) );?>">
		  			<img border="0" src="/images/admin/delete.gif" alt="删除" title="删除"/>
		  		</a>
		  	</th>
		  <?php }?>
		  <?php }?>
   </tbody>
   </table>
   <?php $this->widget('CLinkPager',array('pages'=>$pages));?>
</div>
    </td>
 </tr>
 </table>
 </body>
<?php

?>